#!./perl
$/=";";
while(<>){
   
   if(s/^.*?(typedef\s+enum.*?\{)/$1/smo){
      print "$_\n";
   }
}